package teaching.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data /*自动生成 set get toString方法*/
@NoArgsConstructor //自动生成无参构造函数
@TableName("homework")
public class Homework {
    @TableId(type = IdType.AUTO)
    private long id;
    private long cid;
    private String title;
    private String content;
    private String dueDate;
    private long userId;
    @TableField(exist = false)
    private Submission submission;
}
